
using System.Collections.Generic;

namespace HWGames.Bundles.Internal.Editor {
    public static class BuildErrorConfig {
        // Individual offsets by error type 
        private const int no = 0;
        private const int ga = 300;

        public enum ErrorID {
            NoHWSettings = no,
            SettingsNoFacebookAppID,
            GANoIOSKey = ga,
            GANoAndroidAndKey,
            NoAdmobAndroidToken,
            NoAdmobiOSToken,
            INVALID_PLATFORM,
            PACKAGE_NAME_ERRROR,
            NOHWPREFAB,
            AdmobTestMode,
            SettingsNoFacebookClientToken,
            SettingsNoSingularID,
            TestFPS,
            API_LEVEL,
            TARGET_API_LEVEL,
        }

        public static readonly Dictionary<ErrorID, string> ErrorMessageDict = new Dictionary<ErrorID, string>
        {
             {ErrorID.NoHWSettings, "Settings文件未找到.  检查路径 Assets/Resources/SDKBundle/Settings.asset"},
             {ErrorID.INVALID_PLATFORM, "平台切换成 IOS 或者 Android 平台"},
             {ErrorID.SettingsNoFacebookAppID, "Facebook App Id 错误"},
             {ErrorID.SettingsNoFacebookClientToken, "Facebook Client Token 错误"},
             {ErrorID.GANoIOSKey, "GameAnalytics iOS key 错误"},
             {ErrorID.GANoAndroidAndKey, "GameAnalytics Android key 错误"},
             {ErrorID.NoAdmobAndroidToken, "Android广告Key为空或填写有误"},
             {ErrorID.NoAdmobiOSToken, "iOS广告Key为空或填写有误"},
             {ErrorID.PACKAGE_NAME_ERRROR, "Package Name 设置错误"},
             {ErrorID.NOHWPREFAB, "场景中没有 HWSDKBundle预制体 - 检查你的第一个场景,并创建预制体 HWGames/SDKBundle/Create SDKBundle Object"},
             {ErrorID.TestFPS, "开启后可在手机上测试FPS,正式包需要关闭"},
             {ErrorID.SettingsNoSingularID, "Singular Key错误"},
             {ErrorID.API_LEVEL, "Minimum API Level不符合要求"},
             {ErrorID.TARGET_API_LEVEL, "Target API Level不符合要求"},
         };
    }
}
